1
2
3
4 package joeq.ClassLib.sun142_linux.java.lang;
5
6 /***
7 * ClassLoader
8 *
9 * @author John Whaley
10 * @version $Id: ClassLoader.java 1451 2004-03-09 06:27:08Z jwhaley $
11 */
12 public class ClassLoader {
13
14 private static java.lang.RuntimePermission getClassLoaderPerm;
15 static java.lang.RuntimePermission getGetClassLoaderPerm() {
16 if (getClassLoaderPerm == null) {
17 try {
18 java.lang.Class c = java.lang.Class.forName("sun.security.util.SecurityConstants");
19 java.lang.reflect.Field f = c.getField("GET_CLASSLOADER_PERMISSION");
20 getClassLoaderPerm = (java.lang.RuntimePermission) f.get(null);
21 } catch (java.lang.ClassNotFoundException x) {
22 } catch (java.lang.NoSuchFieldException x) {
23 } catch (java.lang.IllegalAccessException x) {
24 } catch (java.lang.ClassCastException x) {
25 }
26 }
27 return getClassLoaderPerm;
28 }
29
30 }